package shape;

/**
 * Created by thoughtworks on 24/7/14.
 */
public class RightTriangle extends Triangle{
    protected RightTriangle(int height) {
        super(height, height);
    }

    @Override
    public String[] exportString() {
        String[] bitmap = new String[height];
        int i;
        for(i = 0;i < height;i++){
            bitmap[i] = new String();
            bitmap[i] = "";
            int j;
            for(j = 0;j < i * base / height + 1;j++)
                bitmap[i] = bitmap[i] + dataUnit;
        }
        return bitmap;
    }
}
